package com.yeyks.commonReference.append.mattress.api;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConditionalOnProperty(prefix = "mattress.properties", name = "userId", matchIfMissing = false)
@ConfigurationProperties(prefix = "mattress.properties")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MattressApiCallProperties {

    //第三方userId
    private String userId;
    //第三方key
    private String key;

    //查询机器状态的地址
    private String queryStatusUrl = "https://wxapp.wst1688.com/event/device/status";
    private String startUpUrl = "https://wxapp.wst1688.com/event/launch_relay_signal_deivce";

}
